package com.chance.cc.crawler.prod.command.trigger.domain.commerce.du;

import com.chance.cc.crawler.core.CrawlerJob;
import com.chance.cc.crawler.core.downloader.HttpPage;
import com.chance.cc.crawler.meta.core.bean.CrawlerMetaConstant;
import com.chance.cc.crawler.prod.command.job.domain.commerce.du.DuCommonCrawlerJobScript;
import com.chance.cc.crawler.prod.command.job.domain.commerce.du.callender.DuSellCalenderCrawlerSchedulerJob;
import com.chance.cc.crawler.prod.command.job.domain.commerce.du.callender.DuSellCalenderSimpleCrawlerSchedulerJob;
import com.chance.cc.crawler.prod.command.trigger.CommonCrawlerSchedulerTrigger;

/**
 * @author lt
 * @version 1.0
 * @date 2021-06-22 10:30:11
 * @email okprog@sina.com
 */
public class DuSimpleCrawlerScheduleTrigger extends CommonCrawlerSchedulerTrigger {

    public static void main(String[] args) {
        /*Simple*/
        publishDuSellCalenderScheduleTriggerInfo(DuSellCalenderSimpleCrawlerSchedulerJob.crawlerScheduler());

    }

    public static void publishDuSellCalenderScheduleTriggerInfo(CrawlerJob crawlerJob){

        HttpPage page = metaServiceCommand_17.addOrUpdateScheduleCrawlerTrigger(
                crawlerJob.generateCrawlerKey(),
                crawlerJob.generateCrawlerTriggerKey(),
                DuCommonCrawlerJobScript.domain,
                CrawlerMetaConstant.ScheduleJobTrigger_Simple,
                "",
                "得物商品日历临时采集");
    }
}
